﻿
@{
    Layout = null;
    ViewData["Title"] = "HzyAdmin后台管理系统 .Net Core 2.1";
}

<!DOCTYPE html>
<html lang="zh-CN" style="overflow: hidden;">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <!-- 避免IE使用兼容模式 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <!-- 360浏览器默认使用Webkit内核 -->
    <meta name="renderer" content="webkit">
    <!-- 禁止百度SiteAPP转码 -->
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <title>@ViewData["Title"]</title>
    <!--外部css-->
    <link href="~/HzyUI/css/normalize.css" rel="stylesheet" />
    <link href="~/HzyUI/css/site.css" rel="stylesheet" />
    @*<link href="lib/web-icons-master/css/web-icons.css" rel="stylesheet" />*@
    <!--my css-->
    <link href="~/HzyUI/css/main.css" rel="stylesheet" />
    <style type="text/css">
        #hzy-login {
            background: url(/HzyUI/img/login3.jpg);
            background-size:100% 100%;
        }
    </style>
    <link href="~/Admin/lib/layer-v3.1.1/layer/theme/default/layer.css" rel="stylesheet" />
</head>
<body>

    <div id="hzy-login">
        <div class="login-modal">
        </div>
        <div class="container-fluid">
            <div class="row">
                <div class="login-panel">
                    <h1 class="text-center" style="font-size:25px;">HzyAdmin后台管理系统<br />
                    .Net Core 2.1</h1>

                    <div class="container-fluid">

                        <div class="row margin-top-50">


                            <div class="form-group form-material margin-bottom-25">
                                <label class="control-label" for="uName">帐户名</label>
                                <input type="text" class="form-control" id="uName" name="uName" placeholder="请输入帐户名">
                            </div>

                            <div class="form-group form-material margin-bottom-25">
                                <label class="control-label" for="uName">密码</label>
                                <input type="password" class="form-control" id="uName" name="uPwd" placeholder="请输入密码">
                            </div>

                            <div class="form-group form-material">
                                <label class="control-label" for="inputAddons">验证码</label>
                                <div class="input-group">
                                    <div class="">
                                        <input type="text" class="form-control" name="loginCode" placeholder="请输入验证码">
                                    </div>
                                    <span class="input-group-btn">
                                        <img class="yzm" alt="看不清？点击更换" src="/Admin/Login/GetYZM" onclick="this.src='/Admin/Login/GetYZM?s='+new Date().getTime();" width="100" style="height: 31px; border-bottom: 1px solid #e4eaec;">
                                    </span>
                                </div>
                            </div>


                            <button type="button" class="btn btn-block btn-primary btn-lg margin-top-60" onclick="App.Checked();">登录</button>


                        </div>
                    </div>


                </div>
            </div>
        </div>


    </div>

    <script src="~/HzyUI/lib/jquery/jquery-2.1.4.min.js"></script>
    <script src="~/Admin/lib/layer-v3.1.1/layer/layer.js"></script>
    <script src="~/Admin/js/admin.js"></script>
    <script type="text/javascript">
        $(function () {
            $(document).keydown(function (e) {
                if (e.which == 13) App.Checked();
            });

        });


        var App = {
            Checked: function () {
                var uName = $("input[name=uName]").val();
                var uPwd = $("input[name=uPwd]").val();
                var loginCode = $("input[name=loginCode]").val();
                if (!uName) return admin.msg("请输入用户名", "警告");
                if (!uPwd) return admin.msg("请输入密码", "警告");
                if (!loginCode) return admin.msg("请输入验证码", "警告");

                admin.ajax({
                    url: "/Admin/Login/Checked",
                    data: {
                        uName: uName,
                        uPwd: uPwd,
                        loginCode: loginCode
                    },
                    success: function (r) {
                        if (r.status == 1) {
                            admin.loading.start();
                            window.location = r.jumpurl;
                        }

                    }
                });

            }

        };






    </script>

</body>
</html>
